package cn.com.template.utils;

import java.util.ArrayList;
import java.util.List;

/**
 * Datatables 分页UTIL类
 * @author Zoe
 *
 * @param <T>
 */
public class PageUtil<T> {
	// 分页属性
	public static final String PAGE_SIZE = "rows"; // 每页显示的记录数
	public static final String PAGE_COUNT = "page"; // 总页数
	
	private long total;
	private List<T> data = new ArrayList<T>();

	public PageUtil() {
		super();
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}

	public List<T> getData() {
		return data;
	}
	public void setData(List<T> data) {
		this.data = data;
	}
}
